package com.jeefw.fastpdf.core.document.elements;

import com.itextpdf.text.pdf.PdfPTable;

public class LineElement extends PdfPTable {
	
	public LineElement render(ItextXMLElement element) {
	/*	float percentage = element.attr( "percentage").length()>0?Float.parseFloat(element.attr( "percentage")):100;
		float lineWidth = element.attr("line-height").length()>0?Float.parseFloat(element.attr("line-height")):3;
		float height = element.attr("height").length()>0?Float.parseFloat(element.attr("height")):5;
		
		PdfPTable line = new PdfPTable(1);   
		line.setWidthPercentage(percentage);   
		line.getDefaultCell().setBorderWidthLeft(0);   
		line.getDefaultCell().setBorderWidthRight(0);   
		line.getDefaultCell().setBorderWidthTop(0);
		line.getDefaultCell().setBorderWidthBottom(lineWidth);
		line.getDefaultCell().setFixedHeight(height/2);
		StyleRender.getInstance().render(line,element.css());
		line.addCell(" "); 
		document.add(line);
		*/
		return this;
	}

}



